Widths of nested un-ordered lists

Would it be possible if someone could advise as to how the widths of
un-orders lists and their <li> tags are going to be determined in the
near future.

I have a menu system that determines and or specifies the width of its
submenus (<ul>s) based upon the offsetWidth of the <li>'s <a> anchor
tag, e.g. determining the general width of the textual content and
thus _only_ specifying the width of the anchor element, although there
is a min-width being used for the <li> tag.

This is so that nested / child submenus of the un-ordered list(s) can
have different widths.

I would like to know whether this could potentially be considered as
'quirks' programming - I do not believe that it is.

Essentially each <li> tag is being specifed in the CSS rules to
'float' thus in order to reconstruct the submenu container and to give
it a rectangular shape, the offsetWidth of the <a> anchor tags are
determined and the maximum width is then set to each Anchor tag which
since the <li> tag is the parent container reconstructs the
rectangular container.

If there is a better way, this would be of interest also.

-- 
devosc

Received on Monday, 23 May 2005 10:34:35 UTC